package com.pig4cloud.pig.village.sequence.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pig.village.api.entity.GlobalSequence;

/**
 * @author limbray.li
 * @date 2021/7/19
 */
public interface ISequenceService extends IService<GlobalSequence> {

	/**
	 * 获取下一个值，默认当前时间，默认步数1
	 * @return
	 */
	int nextNum();

	/**
	 * 获取下一个值，默认当前时间，指定步数count
	 * @return
	 */
	int nextNum(int count);

	/**
	 * 获取下一个值，指定名称，指定步数count
	 * @return
	 */
	int nextNum(String name, int count);
}
